package Config;

import Config.GlobalVariables;
import Entity.ChargingStations;
import Entity.InboundCounter;
import Entity.OutboundCounter;

public class GlobalVariablesTest {

    public static void main(String[] args) {
        // 初始化全局变量
        GlobalVariables.init();

        // 测试网格尺寸
        System.out.println("Grid Rows: " + GlobalVariables.GRID_ROWS);
        System.out.println("Grid Columns: " + GlobalVariables.GRID_COLUMNS);
        System.out.println("Cell Size: " + GlobalVariables.CELL_SIZE);

        // 测试网格数据
        testGridList();

    }


    private static void testGridList() {
        System.out.println("\nTesting Grid List:");
        System.out.println("Grid Dimensions: " + GlobalVariables.gridList.size() + "x" + GlobalVariables.gridList.get(0).size());

        System.out.println("Sample Grid Data:");
        for (int row = 0; row < GlobalVariables.GRID_ROWS; row++) { // 打印前 5 行
            for (int col = 0; col < GlobalVariables.GRID_COLUMNS; col++) { // 打印前 5 列
                System.out.print(GlobalVariables.gridList.get(row).get(col) + "("+row + " "+col+ ")");
            }
            System.out.println();

        }
       // System.out.print(GlobalVariables.gridList.get(1).get(20));
    }

}

